import request from '@/utils/request'

// 查询楼栋管理列表
export function listBuildingmanage(query) {
  return request({
    url: '/baseSys/buildingmanage/list',
    method: 'get',
    params: query
  })
}

// 查询楼栋管理详细
export function getBuildingmanage(id) {
  return request({
    url: '/baseSys/buildingmanage/' + id,
    method: 'get'
  })
}

// 新增楼栋管理
export function addBuildingmanage(data) {
  return request({
    url: '/baseSys/buildingmanage',
    method: 'post',
    data: data
  })
}

// 修改楼栋管理
export function updateBuildingmanage(data) {
  return request({
    url: '/baseSys/buildingmanage',
    method: 'put',
    data: data
  })
}

// 删除楼栋管理
export function delBuildingmanage(id) {
  return request({
    url: '/baseSys/buildingmanage/' + id,
    method: 'delete'
  })
}

//查询楼栋数据
export function getBuildingList(id) {
  return request({
    url: '/baseSys/buildingmanage/getbuildingllist/'+id,
    method: 'get',
  })
}
